package com.atguigu.springdemo.dao;



import com.atguigu.springdemo.beans.Employee;
import org.springframework.stereotype.Repository;


import java.util.List;
/*              ①如果容器扫描到了@Repository，自动在容器中，创建一个当前注解标识类的对象
 *  *  *       ②@Repository给开发人员看，标识当前类是一个Dao类*/
@Repository
public interface EmployeeMapper {

    Employee getEmployee(Integer id);

    void insertEmployee(Employee e);

    void deleteEmployee(Integer id);

    void updateEmployee(Employee e);

    List<Employee> selectAll();
}
